//************************************************************************
//	PP3_8.java 		Author:GK
//
//	Produce an integer [20, 40]   show sin,cos,tan.
//************************************************************************

import java.util.Random;
import java.util.Scanner;

public class PP3_8
{
	public static void main(String[] args)
	{
		Random a = new Random();
		int b;
		double c,d,e;

		b = a.nextInt(20) + 21;
		System.out.println("产生整数为：" + b);

		c = Math.cos(b);
		System.out.println("余弦：" + c);
		d = Math.sin(b);
		System.out.println("正弦：" + d);
		e = Math.tan(b);
		System.out.println("正切：" + e);
	}
}
